package com.ltmt.es.generator;

import java.util.Random;

import com.ltmt.es.pojo.PrimitivaCombination;

public class PrimitivaGenerator {

	public PrimitivaCombination generateNoRuleCombination (){
		
		PrimitivaCombination pComb = new PrimitivaCombination();
		Random rand = new Random();
		
		for (int i=0; i<6; i++){
			int position = rand.nextInt(49);
			if (!pComb.getCombination().contains(position)){
				pComb.getCombination().add(position);
			}
		}
		
//		System.out.println("Combinacion generada: "+pComb.getCombination());
		return pComb;
		
	}
	
}
